<% content_for :content do %>

	<div class="list_body">
		<% @products.each do |product| %>
		<div class="list">
			<% if product.cover %>
				<a href="<%= product_path(product) %>">
					<%= image_tag product.cover.url(:small), alt: product.title  %>
				</a>
			<% end %>
			<div class="l_c">
				<a href="<%= product_path(product) %>"><span><h2><%= product.title %></h2></span></a><br/>
			 	<p><%= product.description %></p>
			</div>
	 	</div>
	 	<% end if @products %>
 		<%= paginate @products %>
	</div>

<% end %>